package cn.plushine.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@ApiModel(description = "调拨订单")
public class Transfer {
    @ApiModelProperty(value = "调拨订单编号")
    private String id;
    // 日期格式化
    @ApiModelProperty(value = "日期")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date date;
    @ApiModelProperty(value = "调拨订单记录")
    private List<TransferItem> transfers;
    @ApiModelProperty(value = "货物种类")
    private int size;
    @ApiModelProperty(value = "货物总数")
    private int sum;
    @ApiModelProperty(value = "订单状态")
    private int flag;
    // 日期格式化
    @ApiModelProperty(value = "完成日期")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date finishDate;
    @ApiModelProperty(value = "调出仓库")
    private String outWarehouse;
    @ApiModelProperty(value = "调出分区")
    private String outArea;
    @ApiModelProperty(value = "调出库位")
    private String outPosition;
    @ApiModelProperty(value = "调入仓库")
    private String inWarehouse;
    @ApiModelProperty(value = "调入分区")
    private String inArea;
    @ApiModelProperty(value = "调入库位")
    private String inPosition;
    @ApiModelProperty(value = "调出仓库id")
    private int outWarehouseId;
    @ApiModelProperty(value = "调出分区id")
    private int outAreaId;
    @ApiModelProperty(value = "调出库位id")
    private int outPositionId;
    @ApiModelProperty(value = "调入仓库id")
    private int inWarehouseId;
    @ApiModelProperty(value = "调入分区id")
    private int inAreaId;
    @ApiModelProperty(value = "调入库位id")
    private int inPositionId;
}
